package com.yuheadline.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dust.yuheadline.common.utils.Result;
import com.yuheadline.model.article.domain.ArticleImage;
import com.yuheadline.model.article.dto.SaveArticleImgDto;
import com.yuheadline.model.article.vo.SaveArticleImageVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 高翔宇
 * @since 2025/4/19 周六 17:17
 */
public interface ArticleImageService extends IService<ArticleImage> {
    /**
     * 保存文章图片
     */
    Result<SaveArticleImageVo> saveArticleImage(MultipartFile file, SaveArticleImgDto saveArticleImgDto);

    /**
     * 根据文章id删除图片
     */
    void deleteArticleImageByArticleId(Long articleId);

    /**
     * 保存文章图片，接受url
     */
    Result<SaveArticleImageVo> saveArticleImageUrl(SaveArticleImgDto saveArticleImgDto);
}
